package com.yu.entity;

import java.math.BigDecimal;
import java.util.List;

/**
 * @Description:
 * @Author: WengYu
 * @CreateTime: 2022/05/31 21:38
 */
public class User {
    private Integer id;
    private String username;
    private String password;
    private BigDecimal account;

    private List<Role> roles;

    public User() {
    }


    public User(Integer id, String username, String password, BigDecimal account, List<Role> roles) {
        this.id = id;
        this.username = username;
        this.password = password;
        this.account = account;
        this.roles = roles;
    }

    public List<Role> getRoles() {
        return roles;
    }

    public void setRoles(List<Role> roles) {
        this.roles = roles;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public BigDecimal getAccount() {
        return account;
    }

    public void setAccount(BigDecimal account) {
        this.account = account;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", account=" + account +
                ", roles=" + roles +
                '}';
    }
}
